package screen
{
	import com.greensock.TweenLite;
	import com.greensock.easing.Quart;
	
	import flash.display.BlendMode;
	import flash.display.MovieClip;
	import flash.display.SimpleButton;
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	import flash.events.MouseEvent;
	import flash.events.TimerEvent;
	import flash.net.URLLoader;
	import flash.text.TextField;
	import flash.utils.Timer;
	import flash.utils.setInterval;
	import flash.utils.setTimeout;
	
	import helper.ValueObject;
	
	import mx.utils.NameUtil;
	
	import screen.component.OtherAirplane;
	import screen.component.Popup;
	import screen.component.Tank;
	import screen.component.UI;

	
	public class ManulifeScreen extends UI
	{
		private const STEP:Number = 2;
		private var _bg:MovieClip;
		public static var instance:ManulifeScreen;
		public function ManulifeScreen()
		{
			if(!instance){
				instance = this;
			}
		}
		public static function getInstance():ManulifeScreen{
			if(!instance){
				instance = new ManulifeScreen();
			}
			return instance;
		}
		public function onShow():void{
			init();
		}
		public function onHide():void{
			
		}
		private function init():void{
			_bg = ValueObject.C1_RESOURCE.getExportedAsset("bg") as MovieClip;
			_bg.x =0;
			_bg.y = 0;
			addChild(_bg);
			
			
			var tank:Tank = Tank.getInstance();
			_bg.addChildAt(tank,_bg.numChildren -6);
			
			var other_airplane:OtherAirplane = new OtherAirplane();
			_bg.addChildAt(other_airplane,_bg.numChildren-6);
			
			var popup:Popup = Popup.getInsctance();
			_bg.addChildAt(popup,_bg.numChildren-6);
			
		}
		public function get background():MovieClip{
			return _bg;
		}
		
	}	
}